home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / AppsToGo / AppsToGo.src / DTS.Lib / DTS.Lib.headers / ListControl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-18  |  2.6 KB  |  67 lines  |  [TEXT/MPS ]

  1. #ifndef __LISTCONTROL__
  2. #define __LISTCONTROL__
  3.  
  4. #ifndef __TYPES__
  5. #include <Types.h>
  6. #endif
  7.  
  8. #ifndef __LISTS__
  9. #include <Lists.h>
  10. #endif
  11.  
  12. #ifndef __WINDOWS__
  13. #include <Windows.h>
  14. #endif
  15.  
  16. typedef struct CLDataRec {
  17.     short    txFont;
  18.     Style    txFace;
  19.     short    txMode;
  20.     short    txSize;
  21.     short    mode;
  22. } CLDataRec;
  23. typedef CLDataRec *CLDataPtr, **CLDataHndl;
  24.  
  25. void            CLInitialize(void);
  26.  
  27. void            CLActivate(Boolean active, ListHandle listHndl);
  28. Boolean            CLClick(WindowPtr window, EventRecord *event, short *action);
  29. ControlHandle    CLCtlHit(void);
  30. Boolean            CLEvent(WindowPtr window, EventRecord *event, short *action);
  31. ListHandle        CLFindActive(WindowPtr window);
  32. ControlHandle    CLFindCtl(WindowPtr window, EventRecord *event, ListHandle *listHndl, ControlHandle *ctlHit);
  33. ListHandle        CLFromScroll(ControlHandle scrollCtl, ControlHandle *retCtl);
  34. ListHandle        CLGetList(WindowPtr window, short lnum);
  35. short            CLInsert(ListHandle listHndl, char *data, short dataLen, short row, short col);
  36. Boolean            CLKey(WindowPtr window, EventRecord *event);
  37. ListHandle        CLNew(short viewID, Boolean vis, Rect *vRect, short numRows, short numCols, short cellHeight, short cellWidth, short theLProc, WindowPtr window, short mode);
  38. ControlHandle    CLNext(WindowPtr window, ListHandle *listHndl, ControlHandle ctl, short dir, Boolean justActive);
  39. void            CLPrint(RgnHandle clipRgn, ListHandle listHndl, short *row, short *col, short leftEdge, Rect *drawRct);
  40. short            CLRowOrColSearch(ListHandle listHndl, char *data, short dataLen, short row, short col);
  41. void            CLUpdate(RgnHandle clipRgn, ListHandle list);
  42. ControlHandle    CLViewFromList(ListHandle listHndl);
  43. ListHandle        CLWindActivate(WindowPtr window, Boolean displayIt);
  44. void            CLSize(ListHandle list, short newH, short newV);
  45. void            CLMove(ListHandle list, short newH, short newV);
  46.  
  47. typedef void            (*CLActivateProcPtr)(Boolean active, ListHandle listHndl);
  48. typedef Boolean            (*CLClickProcPtr)(WindowPtr window, EventRecord *event, short *action);
  49. typedef ControlHandle    (*CLCtlHitProcPtr)(void);
  50. typedef ListHandle        (*CLFindActiveProcPtr)(WindowPtr window);
  51. typedef Boolean            (*CLKeyProcPtr)(WindowPtr window, EventRecord *event);
  52. typedef ControlHandle    (*CLNextProcPtr)(WindowPtr window, ListHandle *listHndl, ControlHandle ctl, short dir, Boolean justActive);
  53. typedef ControlHandle    (*CLViewFromListProcPtr)(ListHandle listHndl);
  54. typedef ListHandle        (*CLWindActivateProcPtr)(WindowPtr window, Boolean displayIt);
  55.  
  56. #define clHScroll        0x0002
  57. #define clVScroll        0x0008
  58. #define clActive        0x0020
  59. #define clShowActive    0x0040
  60. #define clKeyPos        0x0080
  61. #define clTwoStep        0x0100
  62. #define clHasGrow        0x0200
  63. #define clDrawIt        0x8000
  64.  
  65. #endif
  66.  
  67.